<%@ page language="java" contentType="text/html; charset=US-ASCII"
    pageEncoding="US-ASCII"%>
<% 
String login = "<form action=\"../LoginServlet\">"+
				"Username:"+
				"<input type=\"text\" name=\"un\">	"+
				"Password:"+
				"<input type=\"text\" name=\"pw\">"+
				"<input type=\"submit\" value=\"log In\">"+
				"&nbsp;"+
				"</form>";
%>

<script type="text/javascript" src="jquery-latest.pack.js"></script>
<script type="text/javascript" src="popup.js"></script>

<jsp:useBean id="func" class="Function.FunctionWEB" scope="session"/>   

<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
	<title>FrontPage</title>
	
	<link rel="stylesheet" type="text/css" href="style.css">

</head>
<body>

	<li><a href="#dialog" name="modal">Simple Window Modal</a></li>
	
<div id="dialog" class="window">
Simple Modal Window | 
<a href="#"class="close"/>Close it</a>
</div>
<div id="mask"></div>

	<div id=login>
		<%	
		if(session.getAttribute("currentSessionUser") == null){
			session.setAttribute("userMENU", login);
		}
		%>
		${userMENU}
		<%out.print(func.getClass().getName());%>
	</div>
	<div id=frontMain>
		<div id=header>
			<div id=titleField>
			<br>Bibliotek!
			</div>
		</div>
		<div id=content>
			<form action="MainPage.jsp">
				<input style="width: 600px;" type="text" name="searchText">
				<input type="submit" value="Search">
				<br>
				<a href="aSearch.jsp">advanced search</a>
			</form>	
		</div>
	</div>
	


</body>
</html>